<?php
$sysApps = new sysApps();
$sysApps->DBconnect();
?>

<div class="page-info">
	<div class="pageTitle">Submission List</div>
    <div class="user_email bgGrey">Email</div>
    <div class="user_MGM_id bgGrey">MGM ID</div>
    <div class="user_start_date bgGrey">Action</div>
    <div class="clearFloat"></div>
    
    
    <?php
		$user_id = $_SESSION['login_id'];
		$sql = "SELECT fullname,user_MGM_id, payment_status FROM mgm_users WHERE payment_status = '0'";
			
		$query = mysql_query($sql);
		while ($row = mysql_fetch_array($query)) {
			//echo '<p>'.$row['id'].'+'.$row['email'].'+'.$row['user_MGM_id'].'+'.$row['fullname'].'+'.$row['start_month'].'+'.$row['end_month'].'</p>';
			echo '<div class="user_email">'.$row['fullname'].'</div>';
			echo '<div class="user_MGM_id">'.$row['user_MGM_id'].'</div>';
			echo '<div class="user_start_date"><a href="index.php?page=activate-process&id='.$row['user_MGM_id'].'">Activate</a></div>';
			echo '<div class="clearFloat"></div>';
		}
	?>
</div>